import { callApi } from '../util/callWithParams';

export const getEditSet = params => callApi('/api/doc/save/getEditSet', 'GET', params);

export const getProperty = params => callApi('/api/doc/save/getParams', 'GET', params);

export const doSubmit = params => callApi('/api/doc/save/save', 'POST', params);

export const isExists = params => callApi('/api/doc/save/isExists', 'GET', params);

export const getBasic = params => callApi('/api/doc/save/basicInfo', 'GET', params);

export const getHtmlContent = params =>
  callApi('/api/doc/detail/htmlContent', 'GET', params);

export const saveFilesTmp = params => callApi('/api/doc/save/fileTmp', 'GET', params);

export const getFileList = params => callApi('/api/doc/save/getAccListForEdit', 'GET', params);

export const getModuleContent = params =>
  callApi('/api/doc/save/getMouldContent', 'GET', params);

export const deleteFileEdition = params => callApi('/api/doc/acc/delete', 'GET', params);
//编辑文档完毕，点击提交的时候，将文档状态变为无人编辑
export const docfileCheckIn = params => callApi('/api/doc/save/checkIn', 'GET', params);